<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <title>已下载资源_资源共享平台</title>
    <link rel="stylesheet" href="/layui/css/layui.css"/>
    <link rel="stylesheet" href="/css/style.css"/>
</head>
<body>
<div th:include="common/header" class="header-wrapper"></div>
<div class="container-wrapper">
    <div th:include="common/menu" class="menu-left"></div>
    <div class="menu-right">
        <fieldset class="layui-elem-field layui-field-title">
            <legend>已下载资源列表</legend>
        </fieldset>
        <div style="padding: 10px;">
            <div style="padding-top: 10px;" th:each="userDownload:${userDownloadList}">
                <span th:text="'【'+${#dates.format(userDownload.downloadDate,'yyyy-MM-dd HH:mm')}+'】'"></span>
                &nbsp;下载了&nbsp;
                <a target="_blank" th:href="'/res/detail/'+${userDownload.res.id}" th:title="${userDownload.res.name}" th:text="${#strings.length(userDownload.res.name)}>37?${#strings.substring(userDownload.res.name,0,38)}:${userDownload.res.name}"></a>
            </div>
            <div align="center" style="padding-top: 20px" th:utext="${pageCode}"></div>
        </div>
    </div>
</div>
<div th:include="common/link" class="wrapper"></div>
<div th:include="common/footer" class="footer-wrapper"></div>

<script src="/layui/layui.js"></script>
<script src="/js/common.js"></script>
<script type="text/javascript" th:inline="javascript">
    /*<![CDATA[*/
    layui.use(['layer', 'element'], function () {
        let $ = layui.jquery,
            layer = layui.layer;
    });
    /*]]>*/
</script>
</body>
</html>